package com.rany.day05.demo06;

public class Test {
    public static void main(String[] args) {
        Weapon weapon1 = new Weapon("amk");
        weapon1.setCode("ake");
        Hero hero = new Hero();
        hero.setName("林伟");
        hero.setAge(27);
        hero.setWeapon(weapon1);
        hero.cilck();
    }
}
